]> dgit.raspbian.org Git - gnome-shell.git/commit
shell/tray-manager: Delay managing screen if necessary
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 4 Mar 2020 13:27:54 +0000 (14:27 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Fri, 6 Mar 2020 18:45:21 +0000 (18:45 +0000)
commit4ff94f80a00d0e1e0a9e48df5c390cdf98a476b3
tree4393e497909a59bbae5a512ac5e1e54424b5750e
parente6d458195969aa054ef688d9095cfbfb3275e2fc
shell/tray-manager: Delay managing screen if necessary

Now that Xwayland startup is asynchronous, the function may be called
before X11 is available, resulting in a crash.

Fix this by only managing the tray immediately if we already have an
X11 display, and wait for it to be set up otherwise.

Likewise, unmanage the screen when X11 becomes unavailable.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/2308
src/shell-tray-manager.c